const average = (arr) => arr.reduce((a, b) => a + b) / arr.length;
console.log(average([1,9,18,36]));//16